//
//  LocalFileManage.h
//  DownLoadFileExample
//
//  Created by Lin Eidan on 13-2-26.
//  Copyright (c) 2013年 taomee. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LocalFileManage : NSObject

//获得documents的子文件夹路径
+(NSString *)getPathInsideDocumentsFolder:(NSString *)subFolderName;

+(NSString *)getPathInsideLibraryCachesFolder:(NSString *)subFolderName;

//是否存在这个文件
+(BOOL)isExistFile:(NSString *)fileName;

//创建文件夹
+(void)createFolder:(NSString *)fileFolderPath;

//获得文件大小,文件名称
+ (long long) fileSizeAtPath:(NSString*) filePath;

//获得文件夹大小，文件夹绝对路径
+ (long long) folderSizeAtPath:(NSString*) folderPath;

//字节转化为M
+(float)bytesTransformToM:(float )size;

//字节转化为G
+(float )bytesTransformToG:(float )size;

//删除文件
+(void)deleteFile:(NSString *)filePath;

//获得剩余空间
+(float )freeDiskSpace;

//总共有多少
+ (float)totalDiskSpace;



//获得百分比
+ (float) getProgress:(NSInteger )totalSize andCurrentSize:(NSInteger )currentSize;
@end
